import javax.imageio.plugins.tiff.GeoTIFFTagSet;
import java.awt.image.AreaAveragingScaleFilter;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int a = 2019;
        int m = a /26;
        int n = a%26;
        int b = m /26;
        int c = m%26;
        System.out.println((char)(b+64));
        System.out.println((char)(c+64));
        System.out.println((char)(n+64));
    }
}
